<?php
$id or err('参数不正确！');


$mapkey = MAPKEY;


//获取商铺信息
$info = $shop->get($id);
array2utf8($info);

extract($info);
$cuttellstr = array(" ", "  ", "-", ",", "+");
$telcall = str_replace($cuttellstr, "", $tel1);

//http://maps.google.com/staticmap?center=23.185813175302915,113.17703247070312&zoom=14&size=295x295&maptype=roadmap
$_map = explode(',',$map);
$_x = $_map[0];
$_y = $_map[1];

$_x = $xx ? $xx : $_x;
$_y = $yy ? $yy : $_y;

$t = $t/1000;
$l = $l/1000;


$x = bcadd($_x, $t, 3);
$y = bcadd($_y, $l, 3);
$zoom = $z ;


$zoom = $zoom ? $zoom : 14;

$center = $x.','.$y;

$headtitle = '在线地图';
include mtpl('shopmap');
?>